
(require 'cc-mode)

(defun my-cc-mode-hook ()
  (c-set-style "linux")
  (setq c-basic-offset 2))

(add-hook 'c-mode-hook 'my-cc-mode-hook)
(add-hook 'c++-mode-hook 'my-cc-mode-hook)


(define-key c-mode-map "\C-m" 'newline-and-indent)
(define-key c++-mode-map "\C-m" 'newline-and-indent)

(require 'tempo-c-cpp)
(require 'c-ext)